import TileLayer from "ol/layer/Tile"
import WMS from 'ol/source/TileWMS'

// http://60.191.1.10:8080/geoserver/iZw6ntwpqmgcqeZ/wms?service=WMS&version=1.1.0&request=GetMap&width=256&height=256&srs=EPSG:3857&bbox=13384429.400847502,3561354.0218629315,13403997.280088507,3580921.901103936&layers=LUS3304002018_ZLDJ&transparent=true&format=image/png
var wmsSource = new WMS({
    url: 'http://60.191.1.10:8080/geoserver/iZw6ntwpqmgcqeZ/wms',
    params: { 'LAYERS': 'LUS3304002018_ZLDJ', 'srs': 'EPSG:3857' }
})
var tileLayer = new TileLayer({
    source: wmsSource
})

var loadWMS = {
    tileLayer: tileLayer
}

export default loadWMS